<?php

function showRowHilite($id){
    $result = '';
    if($id%2==0){
        $result = 'class="alt"';
    }
    return $result;
}

function  getAvatarUrl($uid){
    $result = $uid . '';
    $result = md5($result);
    $len = strlen($result);
    $result = '/'.substr($result, $len-6, 2). '/'. substr($result, $len-4, 2).'/'.  substr($result, $len-2).'/'.$uid.'/'.$uid;
    $result = strtoupper($result).'.png';
    $result = 'http://icon.fenfenriji.com'.$result;
    return $result;
}





?>
